package com.burgeon.backend.SHOPBACKEND.service;

import com.burgeon.backend.SHOP.entity.Recommend;
import com.burgeon.backend.SHOP.entity.RecommendConfig;
import com.burgeon.backend.SHOP.entity.RecommendSwitch;
import com.burgeon.backend.SHOP.entity.RecommendVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;

public interface BackendRecommendService {

    //后台获取推荐开关
    RecommendSwitch findRecommendSwitchByAccount(String account);
    //新增配置信息
    Integer addRecommendCode(MultipartFile recommendImg,MultipartFile newImg, String name,String account);
    //修改配置信息
    Integer updateRecommendCode(MultipartFile recommendImg,MultipartFile newImg, String name,String account);

    //修改
    Integer updateRecommendSwitch(String rSwitch1, String rValue1, String rSwitch2, String rValue2,
                                  String rSwitch3, String rValue3, String rSwitch4, String rValue4, String account);
    //获取所有推荐信息
    RecommendVo getRecommend(String account, int page);

    ArrayList<Recommend> findUserByName(String name,String account);

    //获取推荐配置图的信息
    RecommendConfig getRecommendConfigByAccount(String account);


}
